// 禁止用户长按选择 -- 按钮上
button,
.no-select {
  user-select: none;
}

button {
  outline: none;
}

html,
body {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
@font-face {
  font-family: Emoji;
  src: local('Apple Color Emoji'),
    //
    local('Segeo UI Emoji'),
    local('Segeo UI Symbol'),
    //
    local('Noto Color Emoji');
}
a {
  text-underline-position: under;
}

.emoji {
  font-family: Emoji;
}
.hand {
  cursor: pointer;
}

.absolute0 {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
}

.beauty-scroll {
  // padding: 10px;padding
  // margin: -10px;margin
  &:hover {
    &::-webkit-scrollbar {
      visibility: visible;
    }
    &::-webkit-scrollbar-thumb {
      visibility: visible;
    }
  }
  &::-webkit-scrollbar {
    // display: none;display
    position: absolute;
    // right: 0;right
    visibility: hidden;
    opacity: 0.5;
    // transition: all 0.8s linear;transition
    background-color: #f0f0f0;
    border-radius: 4px;
    // &:hover {
    //   background-color: red;
    // }
  }
  &::-webkit-scrollbar:vertical {
    width: 2px;
    &:hover {
      width: 12px;
    }
  }
  &::-webkit-scrollbar:horizontal {
    height: 2px;
    &:hover {
      height: 12px;
    }
  }

  &::-webkit-scrollbar-thumb {
    visibility: hidden;
    &:hover {
      visibility: visible;
      background-color: #a0a0a0;
    }
    background-color: #a0a0a0;
    border-radius: 4px;
  }
}

.no-wrap {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simple-shadow {
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.5);
}
.shadow-float {
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.justify-words {
  text-align-last: justify;
  text-align: justify;
  text-justify: distribute-all-lines;
  width: 100%;
  display: inline-block;
  padding-right: 1.3em;
  position: relative;
  &::after {
    position: absolute;
    content: ':';
    margin-left: 0.2em;
  }
}
